---
layout: example
category: example
title: Set pitch and bearing
description: Map options extend CameraOptions, so you can set more than just center and zoom
tags:
  - camera
---
<div id='map'></div>
<script>
var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v9',
    center: [-73.5804, 45.534830],
    pitch: 60, // pitch in degrees
    bearing: -60, // bearing in degrees
    zoom: 10
});
</script>
